package com.fhz.mvvm.entity

import androidx.room.Dao
import androidx.room.Entity
import androidx.room.PrimaryKey

/**
 * 时间:2023/3/28
 * @author Mr.Feng
 * 简述: TODO
 */
data class UserEntity(
    val `data`: User,
    val errorCode: Int,
    val errorMsg: String
)
@Entity
data class User(
//    @PrimaryKey(autoGenerate = true)
    val uid:Int,
    val address: String?,
    val admin: Boolean?,
    val birth: String?,
    val chapterTops: String?,
    val coinCount: Int?,
    val collectIds: String?,
    val email: String?,
    val icon: String?,
    @PrimaryKey
    val id: Int?,
    val nickname: String?,
    val password: String?,
    val publicName: String?,
    val sex: Int?,
    val token: String?,
    val type: Int?,
    val username: String?
)